package secretaryGUI;

import java.awt.Color;

import flexibility.userData;
import guiCode.secretaryScreenCode;

import com.sun.rowset.CachedRowSetImpl;

import basic.ClientConsole;

public class removeStudentsFromClass {

	userData classDelete = new userData();
	private updateLowerTableEntries ULTE = new updateLowerTableEntries();
	private secretaryScreenCode ssc;
	public void click(createSecretaryWindow csw, ClientConsole secretaryConnection,CachedRowSetImpl crs, secretaryScreenCode code) {

		ssc = code;
		csw.btnRemoveStudentFrom.setForeground(Color.RED);
		csw.btnAddStudentTo.setForeground(Color.BLACK);
		
		classDelete.deleteAll();
		classDelete.addData(96);
		classDelete.addData(0);
		secretaryConnection.acceptMsg(classDelete);
		secretaryConnection.getResults();
		
		classDelete.deleteAll();
		classDelete.addData(93);
		classDelete.addData(1);
		secretaryConnection.acceptMsg(classDelete);
		secretaryConnection.getResults();
		ULTE.update(csw, crs);
	}
}
